import requests

from com.yh.utils.utils import oa_host


class User:
    @staticmethod
    def login(username, password):

        user = {
            "username": username,
             "password":password,
        }

        resp = requests.post(oa_host+"/login/noCode", json=user)
        return resp